﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using nwrole.lib;

namespace nwrole.Supervisor.web.Models
{
    public class HomeIndexViewModel
    {
        public enum Status
        {
            Disabled,
            Ok,
            Error
        }

        public class ServiceViewModel
        {
            public ServiceData ServiceData;
            public List<PluginViewModel> Plugins = new List<PluginViewModel>();
            public DateTime? LastPulseDate;
            public string LastPulseMessage;
            public Status Status;
        }

        public class PluginViewModel
        {
            public PluginData PluginData;
            public DateTime? LastPulseDate;
            public string LastPulseMessage;
            public Status Status;
        }

        public SupervisorData SupervisorData;
        public List<ServiceViewModel> Services = new List<ServiceViewModel>();
    }
}